package com.cskaoyan.service.wxservice.impl;

import com.cskaoyan.bean.po.MarketFeedback;
import com.cskaoyan.mapper.MarketFeedbackMapper;
import com.cskaoyan.service.wxservice.FeedbackWxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:J
 * @datetime 2023/1/2 11:54
 * @description: TODO:
 */
@Service
public class FeedbackWxServiceImpl implements FeedbackWxService {

    @Autowired
    MarketFeedbackMapper marketFeedbackMapper;

    @Override
    public int submit(MarketFeedback marketFeedback) {
//        MarketFeedbackExample example=new MarketFeedbackExample();
//        MarketFeedbackExample.Criteria criteria= example.createCriteria();
//
//        criteria.andS(false);
       // Gson gson=new Gson();
       // String a=gson.fromJson(marketFeedback.getPicUrls());

        //TODO
        //插入一条数据，对该数据进行更新
        //登录状态 status
        int i= marketFeedbackMapper.insertSelective(marketFeedback);
        //int i=marketFeedbackMapper.updateByPrimaryKeySelective(marketFeedback);
        return i;
    }
}
